package com.fs.service.bo.user;

import com.fs.entity.User;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class BoUserInfo {

    public BoUserInfo(User user) {
        id = user.getId();
        name = user.getName();
        loginName = user.getLoginName();
        token = user.getToken();
    }

    private Integer id;
    private String name;
    private String loginName;
    private String token;
}
